package com.yunxiao.cloud.job.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @description: RequestScheduleModel
 * @author: yunxiao
 * @date: 2020/1/17 14:16
 * @version: V1.0
 **/
@ApiModel(value = "RequestScheduleModel")
public class RequestScheduleModel implements Serializable {
    private static final long serialVersionUID = 862760576428748582L;

    /**
     * 任务调度参数key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";


    /**
     * 任务id
     */
    @ApiModelProperty(value = "任务id", required = true, example = "yunxiao_test_001")
    private String jobId;

    /**
     * spring bean名称
     */
    @ApiModelProperty(value = "spring bean名称", name = "beanName", example = "getTimeTask")
    private String beanName;

    /**
     * 参数
     */
    private String params;

    /**
     * cron表达式
     */
    @ApiModelProperty(value = "cron表达式", name = "cronExpression", example = "0 0/1 * * * ?")
    private String cronExpression;

    /**
     * 任务状态  0：正常  1：暂停
     */
    @ApiModelProperty(value = "任务状态 0：正常  1：暂停", name = "status", example = "0")
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    public static String getJobParamKey() {
        return JOB_PARAM_KEY;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
